package com.hyl.service;

import com.hyl.dao.SysRoleMapper;
import com.hyl.entity.SysRole;
import com.hyl.vo.SysRoleParamVO;
import lombok.Data;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @Description TODO
 * @Author hyl
 * @Date 2023/5/5 10:25
 **/
@Service("sysRoleService")  // <bean id="sysRoleService" class="com.hyl.service.SysRoleServiceImpl"/>
public class SysRoleServiceImpl implements SysRoleService {

	@Resource
	private SysRoleMapper roleMapper; //通过Spring将roleMapper自动注入

	@Override
	public List<SysRole> findAll() {
		return roleMapper.findAll();
	}

	@Override
	public SysRole findById(Integer id) {
		return null;
	}

	@Override
	public SysRole findRoleAndUserById(Integer id) {
		return null;
	}

	@Override
	public List<SysRole> findByParams(String roleName, String code, Integer offset, Integer showSize) {
		return null;
	}

	@Override
	public List<SysRole> findByMap(Map map) {
		return null;
	}

	@Override
	public List<SysRole> findByVO(SysRoleParamVO vo) {
		return null;
	}

	@Override
	public int update(SysRole role) {
		return 0;
	}

	@Override
	public int del(Integer id) {
		return 0;
	}

	@Override
	public int save(SysRole role) {
		return 0;
	}

	public void setRoleMapper(SysRoleMapper roleMapper) {
		this.roleMapper = roleMapper;
	}
}
